<form name="selectForm" ng-init="dvm.init()" ng-submit="dvm.submit(selectForm.$valid)" novalidate>
  <div class="modal-header">
    <button type="button" class="close" ng-click="dvm.cancel()">&times;</button>
    <h4 class="modal-title">选择文件夹</h4>
  </div>
  <div class="modal-body">
    <input type="text" name="directory" class="hidden" ng-model="dvm.directory" readonly required>
    <dirtree on-selected="dvm.select" style="min-height:250px"></dirtree>
  </div>
  <div class="modal-footer">
    <button type="submit" class="btn btn-default" ng-disabled="selectForm.$invalid">
      <i class="fa fa-check"></i> 确定</button>
    <button type="button" class="btn btn-default" ng-click="dvm.cancel()">
      <i class="fa fa-times"></i> 取消</button>
  </div>
</form>
